module.exports = {
  base: '/blog/',
  title: 'HelloSun学习笔记',
  description: '温故知新 学而实习',
  theme: 'reco',
  markdown: {
    lineNumbers: true,
  },
  plugins: [
    'vuepress-plugin-auto-sidebar',
    {
      // options
    },
    '@vuepress/active-header-links',
    {
      sidebarLinkSelector: '.sidebar-link', //插件 在滚动时自动侧边栏
      headerAnchorSelector: '.header-anchor', //插件 ？？
    },
    '@vuepress/back-to-top',
    '@vuepress/medium-zoom',
  ],

  themeConfig: {
    sidebar: 'auto',
    subSidebar: 'auto',
    // displayAllHeaders: true, //这个也没理解
    // activeHeaderLinks: false, // 默认值：true 这个没理解
    // lastUpdated: 'Last Updated', // string | boolean 最后更新时间
    smoothScroll: true, //页面滚动
    nav: [
      { text: '首页', link: '/' },
      // { text: '基础', link: '/base/' },
      {
        text: '基础',
        ariaLabel: '基础',
        items: [
          { text: 'JS基础', link: '/base/js' },
          { text: 'HTML', link: '/base/html' },
          { text: 'CSS', link: '/base/css' },
        ],
      },
      {
        text: 'Vue',
        ariaLabel: 'Vue',
        items: [
          { text: 'Vue2.x', link: '/vue/vue2' },
          { text: 'Vue3.x', link: '/vue/vue3' },
        ],
      },
      { text: 'ChatGPT', link: '/chatgpt/chatgpt' },
      { text: '搭建博客', link: '/buildblog/blog' },
      { text: '扩展', link: 'https://google.com' },
    ],
  },
};
